home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
oop_tp55.zip
/
LIST1_1.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1989-12-03
|
1KB
|
67 lines
type
XYZ = record
a : integer;
b : real;
c : string[32];
end;
procedure Init( aa : integer; bb : real; cc : string;
var Rec : XYZ);
begin
with Rec do
begin
a := aa;
b := bb;
c := cc;
end;
end;
var
R : XYZ;
begin
Init( 1234, 2.712,
'The string is 32 characters long', R);
writeln( 'The integer value is ', R.a );
writeln( 'The string value is ', R.c );
writeln( 'The real value is ', R.b );
end.